package com.ruoyi.system.api;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.domain.SysRole;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 * 
 * @author 李演
 */
@FeignClient(contextId = "remoteRoleService", value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteRoleService
{
    @PostMapping("/role/key")
    public SysRole byKey(@RequestParam("roleKey") String roleKey);
    @PostMapping("/role/bingRole")
    public void bingRole(@RequestParam("userId") Long userId,@RequestParam("roleId") Long roleId);
}
